using System;
using System.Xml.Schema;
using System.Xml.Serialization;
using flickr.api.communication;

namespace flickr.api
{
    [Serializable]
    public class Contact : FlickrObject
    {
        [XmlAttribute("nsid", Form=XmlSchemaForm.Unqualified)]
        public string UserId;
    
        [XmlAttribute("username", Form=XmlSchemaForm.Unqualified)]
        public string UserName;
    
        [XmlAttribute("friend", Form=XmlSchemaForm.Unqualified)]
        public int IsFriend;
    
        [XmlAttribute("family", Form=XmlSchemaForm.Unqualified)]
        public int IsFamily;
    
        [XmlAttribute("ignored", Form=XmlSchemaForm.Unqualified)]
        public int IsIgnored;

        [XmlAttribute("online", Form=XmlSchemaForm.Unqualified)]
        public int IsOnline;

        [XmlText()]
        public string AwayDescription;
        
        public Contact():base(){}
        public Contact(FlickrConnection connection) : base(connection){}
    }
}